import request from '@/utils/request'

// 查询学员课时点名列表
export function listLessonstudent(query) {
  return request({
    url: '/puyu/lessonstudent/list',
    method: 'get',
    params: query
  })
}

// 查询学员课时点名详细
export function getLessonstudent(lessonStudentId) {
  return request({
    url: '/puyu/lessonstudent/' + lessonStudentId,
    method: 'get'
  })
}

// 新增学员课时点名
export function addLessonstudent(data) {
  return request({
    url: '/puyu/lessonstudent',
    method: 'post',
    data: data
  })
}

// 修改学员课时点名
export function updateLessonstudent(data) {
  return request({
    url: '/puyu/lessonstudent',
    method: 'put',
    data: data
  })
}

// 删除学员课时点名
export function delLessonstudent(lessonStudentId) {
  return request({
    url: '/puyu/lessonstudent/' + lessonStudentId,
    method: 'delete'
  })
}
